import 'package:sil_utils_package/log/SilEntityLog.dart';

class CountryEntity {
  String? id;
  /// 中文名称
  String? cnCountry;
  /// 英文名称
  String? enCountry;
  String? telCode;
  CountryEntity({
    this.id,
    this.cnCountry,
    this.enCountry,
    this.telCode,
  });
  CountryEntity.fromJson(Map<String, dynamic> json) {
    id = SilEntityLog.handleString(json, 'id');
    cnCountry = SilEntityLog.handleString(json, 'cnCountry');
    enCountry = SilEntityLog.handleString(json, 'enCountry');
    telCode = SilEntityLog.handleString(json, 'telCode');
  }
  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['cnCountry'] = this.cnCountry;
    data['enCountry'] = this.enCountry;
    data['telCode'] = this.telCode;
    return data;
  }
}
